# coding=utf8

import json
from app.modules.common.utils import ComplexEncoder

def saveJsonFile(file, data):
    with open(file, 'w') as json_file:
        json_file.write(json.dumps(data, cls = ComplexEncoder))


def getJsonFile(file):
    data = None
    with open(file) as json_file:
        data = json.load(json_file)
    return data


if __name__ == "__main__":
    pass
